package com.tencent.wxcloudrun.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencent.wxcloudrun.common.enums.StatusEnum;
import lombok.Data;

@Data
@TableName(value = "`order`")
public class Order {
    /**
     * 订单号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 桌号
     */
    @TableField(value = "tableNum_id")
    private Long tablenumId;

    /**
     * 用户编号
     */
    @TableField(value = "custom_id")
    private String customId;

    /**
     * 人数
     */
    @TableField(value = "people_num")
    private Integer peopleNum;

    /**
     * 金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 状态
     */
    @TableField(value = "status")
    private StatusEnum status;

    /**
     * 交易时间
     */
    @TableField(value = "time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    @TableField(exist = false)
    private Integer statusTo;

}